from selenium import webdriver
import time

file_path = 'D:/Day08/Day49/selenium.html'
driver = webdriver.Chrome()
driver.get(file_path)
driver.maximize_window()

driver.find_element_by_name('username').send_keys('rabbit')
time.sleep(3)
driver.find_element_by_name('password').send_keys('love')
time.sleep(3)
driver.find_element_by_id('sub').click()

# rabbit = driver.get('https://test.rabbitpre.com/')
time.sleep(3)
title = driver.title
url = driver.current_url
print(title)
print(url)
driver.close()
driver.quit()






